package cn.edu.niit.service;

import cn.edu.niit.dao.BookDao;
import cn.edu.niit.javabean.Book;

import java.util.List;

/**
 * @program: Library
 * @ClassName: BookService
 * @description: Test
 * @author: Cai
 * @date: 2021/4/12 16:11
 **/
public class BookService {
    private BookDao bookDao=new BookDao();

    public List<Book> searchAllBooks(int pageNum, int pageSize) {
        List<Book> books=bookDao.selectAll(pageNum,pageSize);
        return books;
    }

    public int countNum() {
        return bookDao.selectAllCount();
    }
}
